<template>
  <div class="atlas_main">
    <div class="atlas_left">
      <NavbarCard v-on:cateid="getCateid" :open="true" />
    </div>
    <div class="atlas_body">
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="招商雷达" name="radar">
          <Radar
            v-if="activeName == 'radar'"
            :industry_id="industry_id"
            :industry_cate="industry_cate"
          ></Radar>
        </el-tab-pane>
        <el-tab-pane label="产业评估" name="estimate">
          <Estimate
            v-if="activeName == 'estimate'"
            :industry_id="industry_id"
            :industry_cate="industry_cate"
          ></Estimate>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
import NavbarCard from "@/components/navbarCard.vue";
import Estimate from "./page/estimate.vue";
import Radar from "./page/radar.vue";

export default {
  components: {
    NavbarCard,
    Estimate,
    Radar,
  },
  data() {
    return {
      // 行业id
      industry_id: 32,
      industry_cate: "2",
      // 一级标签页
      activeName: "radar",
    };
  },
  mounted() {},

  methods: {
    handleClick(e) {
      this.activeName = e.name;
    },
    getCateid(data) {
      this.industry_id = data.id;
      this.industry_cate = data.cate;
    },
  },
};
</script>

<style lang="less" scoped>
.home {
  color: #333;
}
.atlas_main {
  width: 100%;
  height: 100%;
  display: flex;
  background: #f0f0f0;
  text-align: left;
  .atlas_left {
    flex: 0 0 340px;
  }
  .atlas_body {
    flex: 1;
    margin-left: 30px;

    background: #fff;
  }
}
/deep/.el-tab-pane {
  height: 100%;
}
.Industrial-chain {
  display: flex;
  height: 270px;
  justify-content: space-between;
  align-self: center;
  margin-bottom: 30px;
  & > li {
    width: 480px;
    background: #ffffff;
    box-shadow: 0px 0px 10px 0px rgba(4, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    cursor: default;
    li {
      font-weight: bold;
      cursor: default;
      li {
        font-weight: 400;
      }
    }
  }

  .chain_head {
    height: 48px;
    line-height: 48px;
    border-radius: 10px 10px 0px 0px;
    font-size: 28px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: #f1f5ff;
    text-align: center;
  }
  .top {
    .chain_head {
      background: linear-gradient(0deg, #767ffe, #79aefe);
    }
  }
  .center {
    .chain_head {
      background: linear-gradient(0deg, #ff7c78, #fd9965);
    }
  }
  .bottom {
    .chain_head {
      background: linear-gradient(0deg, #1ed0c4, #19d0b2);
    }
  }
}
.classify {
  height: 460px;
  background: #ffffff;
}
td {
  color: #333;
}

// 产业链样式修改
/deep/.top .el-collapse {
  border-top: 0;
  border-bottom: 0;
  height: 222px;
  overflow-y: scroll;
  scrollbar-color: #767ffe #e9f3ff; //滚动条轨道颜色   滚动条滑块的颜色
  scrollbar-width: 6px;
  scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失

  &::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
    height: 70px;
  }
  &::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 6px;
    background: linear-gradient(0deg, #767ffe, #79aefe);
  }
  &::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    background: #e9f3ff;
    border-radius: 6px;
  }
}
.scroll {
  overflow-y: scroll;
  scrollbar-color: #767ffe #e9f3ff; //滚动条轨道颜色   滚动条滑块的颜色
  scrollbar-width: 6px;
  scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失

  &::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
    height: 70px;
  }
  &::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 6px;
    background: linear-gradient(0deg, #767ffe, #79aefe);
  }
  &::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    background: #e9f3ff;
    border-radius: 6px;
  }
}
/deep/.center .el-collapse {
  border-top: 0;
  border-bottom: 0;
  height: 222px;
  overflow-y: scroll;
  scrollbar-color: #ff7c78 #e9f3ff; //滚动条轨道颜色   滚动条滑块的颜色
  scrollbar-width: 6px;
  scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失

  &::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
    height: 70px;
  }
  &::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 6px;
    background: linear-gradient(0deg, #ff7c78, #fd9965);
  }
  &::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    background: #e9f3ff;
    border-radius: 6px;
  }
}
/deep/.bottom .el-collapse {
  border-top: 0;
  border-bottom: 0;
  height: 222px;
  overflow-y: scroll;
  scrollbar-color: #1ed0c4 #e9f3ff; //滚动条轨道颜色   滚动条滑块的颜色
  scrollbar-width: 6px;
  scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失

  &::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 6px; /*高宽分别对应横竖滚动条的尺寸*/
    height: 70px;
  }
  &::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 6px;
    background: linear-gradient(0deg, #1ed0c4, #19d0b2);
  }
  &::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    background: #e9f3ff;
    border-radius: 6px;
  }
}
/deep/.el-collapse-item__header {
  position: relative;
  margin-top: 20px;
  height: 30px;
  font-size: 18px;
  line-height: 30px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #333333;
  text-align: center !important;
  border: none;

  div {
    width: 100%;
  }
}

/deep/.el-collapse-item__content {
  padding-bottom: 0;
  text-align: center;
  li {
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #666666;
    line-height: 30px;
  }
}
/deep/.el-collapse-item__wrap {
  border: none;
}
/deep/.el-collapse-item__arrow {
  position: absolute;
  right: 10px;
}
.isactive {
  transform: rotate(90deg);
}
.el-collapse-item__header div.title_active {
  color: #0043b3;
}
.el-collapse-item__content li.text_active {
  color: #0043b3;
  font-weight: bold;
  li {
    color: #666;
    font-weight: 400;
  }
}
// 选项卡样式修改
/deep/.el-tabs__item {
  padding: 0 50px;
  font-size: 20px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #333333;
  height: 60px;
  line-height: 60px;
}
/deep/.el-tabs__item.is-active {
  font-weight: bold;
  color: #0043b3;
}
/deep/.el-tabs--top .el-tabs__item.is-top:nth-child(2) {
  padding-left: 50px;
}
/deep/.el-tabs__active-bar {
  height: 4px;
  background: #0043b3;
}
/deep/ .el-tabs__item {
  cursor: pointer;
}
/deep/ .el-collapse-item__header div {
  cursor: default;
}
/deep/ .el-tabs__nav-scroll {
  box-shadow: 0px 2px 6px 0px rgba(4, 0, 0, 0.1);
  background: #fff;
}
/deep/ .el-tabs__nav-wrap {
  box-shadow: 0px 2px 6px 0px rgba(4, 0, 0, 0.1);
}
/deep/ .el-tabs__nav-wrap::after {
  height: 0;
}
/deep/.el-tabs__header {
  margin: 0;
}
/deep/.el-tabs {
  height: 100%;
  background: #fafafa;
  .el-tabs__content {
    box-sizing: border-box;
    height: calc(100% - 60px);
    padding: 30px 30px 20px;
    overflow: hidden;
    background: transparent;
  }
}
//// 表格样式修改
/deep/.el-table--striped
  .el-table__body
  tr.el-table__row--striped
  td.el-table__cell {
  background: #f7faff;
}

/deep/.el-table__header .has-gutter tr th {
  height: 48px;
  background: #5889dc;
  color: #fff;
  border-right: 0;
}
/deep/.el-table tr {
  height: 48px;
  font-size: 14px;
  background-color: #fff;
}
/deep/.el-table td {
  padding: 0;
}
/deep/.el-table .el-table__cell {
  height: 48px;
  padding: 0;

  
  .cell {
    height: 48px;
    line-height: 48px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
/deep/ .el-table th.is-leaf {
  background: #5889dc;
  border-right: none;
  border-bottom: 1px solid #ebeef5;
  color: #fff;
}

// 表格分页样式修改
/deep/ .el-pagination {
  text-align: right;
  margin-top: 15px;
}
/deep/ .el-pager li {
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 16px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  color: #666666;
  background: #fafafa;
  box-shadow: 0px 0px 4px 0px rgba(86, 86, 86, 0.11);
  border-radius: 8px;
  margin: 0 8px;
}

/deep/ .el-pager li.active {
  color: #fff;
  background: #446db3;
  box-shadow: 0px 0px 3px 0px rgba(0, 50, 89, 0.4);
  border-radius: 6px;
}

/deep/ .el-pagination .el-icon-arrow-right:before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  background: url("~@img/atlas/icon-page-right.png") no-repeat center;
}
/deep/
  .el-pagination
  button:disabled.btn-next:hover
  .el-icon-arrow-right:before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  background: url("~@img/atlas/icon-page-right.png") no-repeat center;
}
/deep/.el-pagination .btn-next:hover .el-icon-arrow-right:before {
  background: url("~@img/atlas/sidenav-hover2.png") no-repeat center;
}
/deep/ .el-pagination .el-icon-arrow-left:before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  background: url("~@img/atlas/icon-page-left.png") no-repeat center;
}
/deep/
  .el-pagination
  button:disabled.btn-prev:hover
  .el-icon-arrow-left:before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  background: url("~@img/atlas/icon-page-left.png") no-repeat center;
}
/deep/.el-pagination .btn-prev:hover .el-icon-arrow-left:before {
  background: url("~@img/atlas/sidenav-hover1.png") no-repeat center;
}
/deep/.pagination .el-select .el-input.is-focus .el-input__inner {
  height: 40px;
  border-color: #fafafa;
  background: #fafafa;
  box-shadow: 0px 0px 4px 0px rgba(86, 86, 86, 0.11);
  border-radius: 6px;
}
/deep/.pagination .el-input__inner {
  height: 40px;
  color: #666;
  border-color: #fafafa;
  background: #fafafa;
  box-shadow: 0px 0px 4px 0px rgba(86, 86, 86, 0.11);
  border-radius: 6px;
}
/deep/.pagination .el-pagination__sizes .el-input .el-input__inner:hover {
  height: 40px;
  border-color: #fafafa;
  background: #fafafa;
  box-shadow: 0px 0px 4px 0px rgba(86, 86, 86, 0.11);
  border-radius: 6px;
}
/deep/ .el-pagination__jump {
  height: 30px;
  line-height: 30px;
}
/deep/.pagination .el-pagination__jump .el-input__inner {
  color: #ccc;
}
/deep/.pagination .el-pagination__jump .el-input__inner.active {
  color: #666;
}
/deep/.el-pagination__jump .el-input__inner:focus {
  color: #666;
}

/deep/ .el-pagination .btn-next,
/deep/ .el-pagination .btn-prev {
  background-color: transparent;
}
/deep/ .el-pagination .btn-next i,
/deep/ .el-pagination .btn-prev i {
  background: #fafafa;
  box-shadow: 0px 0px 4px 0px rgba(86, 86, 86, 0.11);
  border-radius: 6px;
}
// 子级选项卡样式修改
/deep/.tab-resources .el-tabs__nav-wrap {
  height: 38px;
  line-height: 38px;

  box-shadow: none;
}
/deep/.tab-resources .el-tabs--card > .el-tabs__header .el-tabs__item {
  height: 38px;
  line-height: 38px;
  font-size: 16px;
  font-family: Microsoft YaHei;
  font-weight: 400;
  transition: none;
}
/deep/.tab-resources .el-tabs--card > .el-tabs__header .el-tabs__item.isactive {
  color: #0043b3;
}
/deep/.tab-resources .el-tabs--card > .el-tabs__header {
  border: 0;
}
/deep/.tab-resources .el-tabs--card > .el-tabs__header .el-tabs__nav {
  border: none;
}

/deep/.tab-resources .el-tabs__item {
  margin-right: 40px;
  padding: 0 24px;
  border: 1px solid #0043b3;
  border-radius: 4px;
}

/deep/.tab-resources .el-tabs--top .el-tabs__item.is-top:nth-child(2) {
  padding-left: 24px;
}
/deep/.tab-resources
  .el-tabs--card
  > .el-tabs__header
  .el-tabs__item:first-child {
  border-left: 1px solid #0043b3;
}

/deep/.tab-resources
  .el-tabs--card
  > .el-tabs__header
  .el-tabs__item.is-active {
  color: #fff;
  background: linear-gradient(0deg, #0043b3 0%, #2667d5 100%);
  border-radius: 4px;
  border-bottom-color: #0043b3;
}

/deep/.tab-resources .el-tabs .el-tabs__content {
  padding: 20px 0 0 0;
}

/deep/.el-pagination__jump .el-input__inner:focus {
  color: #666;
}

// 产业评估
.industry_link {
  display: flex;
  justify-content: start;
  margin-bottom: 40px;
  li {
    margin-right: 40px;
    width: 200px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border: 1px solid #999999;
    border-radius: 4px;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #666666;
    cursor: default;

    &.active {
      border: 1px solid transparent;
      color: #ffffff;
      background: linear-gradient(0deg, #0043b3 0%, #2667d5 100%);
    }
  }
}
.specific_links {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  li {
    margin-right: 24px;
    margin-bottom: 20px;
    width: 220px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    background: #ffffff;
    box-shadow: 0px 0px 5px 0px rgba(4, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #333333;
    cursor: default;
    &.active {
      font-weight: bold;
      color: #0043b3;
      border: 1px solid #0043b3;
    }
    &:nth-of-type(6n) {
      margin-right: 0;
    }
  }
}
/deep/ .el-tabs__active-bar {
  height: 4px;
  background: #446db3;
}
/deep/ .el-tabs__item.is-active {
  font-weight: bold;
  color: #446db3;
}
/deep/ .el-table .el-table__body-wrapper .el-table__cell .cell,
/deep/ .el-table .el-table__fixed-body-wrapper .el-table__cell .cell {
  cursor: default !important;
}
</style>
